theory of cost and production